package com.ky.home.mapper;

import com.ky.home.entity.ExamLog;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

/**
 * <p>
 * 答题记录 Mapper 接口
 * </p>
 *
 * @author pl
 * @since 2024-06-23
 */
public interface ExamLogMapper extends BaseMapper<ExamLog> {
    @Select("SELECT COUNT(*) FROM examLog WHERE DATE(create_time) = CURRENT_DATE()")
    int countTodayQuestions();
    @Select("SELECT COUNT(*) FROM examLog")
    int countQuestions();

}
